
import lejos.nxt.Motor;
import lejos.nxt.UltrasonicSensor;
import lejos.robotics.subsumption.*;
import lejos.robotics.navigation.*;


public class DriveForwardAndLook implements Behavior {
	
	DifferentialPilot navigator;
	
	public DriveForwardAndLook(DifferentialPilot nav) {
		navigator  = nav;
 	}
	
	public boolean takeControl() {
		return true;
	}
	
	public void suppress() {
		navigator.stop();
	}
	
	public void action() {
		navigator.forward();
	}
}
